import Vue from 'vue'
import VueRoute from 'vue-router'
import Navi from '../views/NaviGation'
import FindHome from '../views/FindHome'
import Message from '../views/Message'
import Mymessage from '../views/MyMessage'
import login from '../views/Login'
import regi from '../views/Register'
import ConT from '../views/ConTent'
import city from '../views/CityList'
Vue.use(VueRoute)

const router = new VueRoute({
  linkActiveClass: 'active',
  routes: [
    { path: '/', redirect: '/Navi' },
    {
      path: '/Navi',
      component: Navi,
      redirect: '/cont',
      children: [
        { path: '/findhome', component: FindHome },

        { path: '/Mymessage', component: Mymessage },
        { path: '/cont', component: ConT }
      ]
    },
    { path: '/login', component: login },
    { path: '/regi', component: regi },
    { path: '/city', component: city },
    { path: '/message/:code?', component: Message }
  ]
})

export default router
